<?php $__env->startSection('content'); ?>
<div class="container">
    <div class="row">
        <div class="col-md-8 col-md-offset-2">
            <div class="panel panel-default">
                <div class="panel-heading">欢迎登录</div>
                <div class="panel-body">

                    <form class="form-horizontal" role="form" method="POST" action="<?php echo e(route('login')); ?>">
                        <?php echo e(csrf_field()); ?>


                        <div class="form-group<?php echo e($errors->has('phone') ? ' has-error' : ''); ?>">
                            <label for="tel" class="col-md-4 control-label">请输入账号</label>

                            <div class="col-md-6">
                                <input id="tel" type="tel" class="form-control" name="phone" value="" required autofocus>

                                
                                    
                                        
                                    
                                
                            </div>
                        </div>

                        <div class="form-group<?php echo e($errors->has('password') ? ' has-error' : ''); ?>">
                            <label for="password" class="col-md-4 control-label">请输入密码</label>

                            <div class="col-md-6">
                                <input id="password" type="password" class="form-control" name="password" required>

                                <?php if($errors->has('password')): ?>
                                    <span class="help-block">
                                        <strong><?php echo e($errors->first('password')); ?></strong>
                                    </span>
                                <?php endif; ?>
                            </div>
                        </div>

                       

                        <div class="form-group<?php echo e($errors->has('captcha') ? ' has-error' : ''); ?>">
                            <label for="captcha" class="col-md-4 control-label">请输入右图验证码</label>

                            <div class="col-md-2">
                                <input id="captcha" type="text" class="form-control" name="captcha" required>

                                <?php if($errors->has('captcha')): ?>
                                    <span class="help-block">
                                        <strong><?php echo e($errors->first('captcha')); ?></strong>
                                    </span>
                                <?php endif; ?>
                            </div>
                            <div class="col-md-2">
                                <img src="<?php echo e(captcha_src()); ?>" alt="" id="pic_code">
                            </div>
                            <div class="col-md-2">
                                <a href="javascript:;" class="btn btn-success" onclick="resful()">刷新</a>
                            </div>
                        </div>

                        <script type="application/javascript">
                            function resful() {
                                document.getElementById('pic_code').setAttribute('src','<?php echo e(captcha_src()); ?>&y=' + Math.random());
                            }
                        </script>
                        
                            
                                
                                    
                                        
                                    
                                
                            
                        

                        <div class="form-group">
                            <div class="col-md-6 col-md-offset-4">
                                <button type="submit" class="btn btn-block btn-primary">
                                    登录
                                </button>

                                
                                    
                                
                            </div>
                        </div>
                    </form>

                    <?php if(count($errors) > 0): ?>
                        <div class="alert alert-danger">
                            <?php echo implode('<br>', $errors->all()); ?>

                        </div>
                    <?php endif; ?>
                </div>
            </div>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>